package think.in.spring.bean.builder;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import think.in.spring.ioc.overview.domain.User;

public class AliasDemo {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:/META-INF/BeanDefinition.xml");
        User user = (User) context.getBean("userAA");
        System.out.println(user);
    }
}
